package com.ant.common.aop;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


//@Aspect
@Component
public class GlobalPintCut {
    static final Logger LOGGER = LoggerFactory.getLogger(GlobalPintCut.class);

//    @Pointcut("")
    /*public void pointcut(){
    }

//    @Before("pointcut()")
    public void before(JoinPoint point){
        LOGGER.info("前置通知");
    }

//    @After("pointcut()")
    public void after(JoinPoint point){
        LOGGER.info("后置通知");
    }

//    @Around("pointcut()")
    public Object around(ProceedingJoinPoint point){
        LOGGER.info("环绕通知");
        return "";
    }

//    @AfterReturning("pointcut()")
    public void afterReturning(){
        LOGGER.info("返回通知");
    }

//    @AfterThrowing(value = "pointcut()", throwing = "e")
    public void afterThrowing(JoinPoint point, Throwable e) {
        LOGGER.info("异常通知");
    }*/
}
